﻿<UserControl  x:Class="WPFExcelReport.Controls.TBUSY"
              xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
              xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  
               xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
               xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"    
              Background="White"  
              Name="TV"
     >
    <UserControl.Resources> 
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
    </UserControl.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <TextBlock Grid.Row="0"  Grid.Column="0"  HorizontalAlignment="Stretch"
                   Visibility="{Binding IsBusy, ElementName=TV, Converter={StaticResource bv}}"
                   VerticalAlignment="Stretch"
                   Opacity="30"
       Name="txtMessage" Foreground="Red" Text="后台程序运行中" FontSize="18"></TextBlock>

    </Grid>
</UserControl >
